/* eslint-disable prettier/prettier */
/* eslint-disable no-unused-vars */
const crypto = require('crypto')

class RandomStr {
  static randomStr = (num = 6) => {
    return crypto
      .randomBytes(Math.ceil(num / 2))
      .toString('hex')
      .slice(0, num)
  }
}

export default RandomStr
